import  request from "@/common/js/request.js"

export  default {
	// 问答的数据
	getList(query,current,size){
		return  request({
			url:'/article/api/article/search',
			method:'POST',
			data:{...query , current ,  size}
			
		})
	},
	
	// 通过文章ID  查询文章详情
	getArticleById(articleId){
		return request({
			url:`/article/api/article/${articleId}`,
			method:'GET'
		})
	},
	
	// 通过文章ID  查询文章评论列表
	getArticleCommentById(articleId){
		return request({
			url:`/article/api/comment/list/${articleId}`,
			method:'GET'
		})
	},
	
	//新增文章评论
 	getArticleComment(data){
		return request({
			url:`/article/comment`,
			method:'POST',
			data
		})
	},
}